import { request } from '@/utils/service'
import type * as Map from '@/api/map/types/map'
/** 查询地图数据
 */
export function getMapJson(adcode: string, level: string, isFull: boolean) {
  return request<Map.getMapJsonResponseData>({
    url: '/' + level + '/' + adcode + (isFull ? '_full' : '') + '.json',
    method: 'get',
    baseURL: 'https://www.isqqw.com/asset/get/areas_v3',
  })
}
export function queryMap(data: Map.queryMapRequestData) {
  return request<Map.queryMapResponse>({
    url: '/queryMap',
    method: 'post',
    data,
  })
}
/** 获取电池数据大屏信息内电池总数检测信息 */
export function queryBatteryTotalDetection(data: Map.queryBatteryTotalDetectionRequestData) {
  return request<Map.queryBatteryTotalDetectionResponse>({
    url: '/queryBatteryTotalDetection',
    method: 'post',
    data,
  })
}
